<template>
	<view class="omit_product flex justify-content_space-between relative">
		<!-- <view class="omit_product-mask absolute border-box">商品已删除</view> -->
		<view class="omit_product-left flex justify-content_space-between">
			<up-image class="omit_product-left-cover block flex-shrink0" :show-loading="true"
				:src="props.item?.productRespVO?.coverImg || props.item?.productImg" width="180rpx" height="180rpx"
				radius="8rpx"></up-image>
			<view class="omit_product-left-data flex wrap">
				<view style="width: 100%;">
					{{props.item?.productRespVO?.title || props.item?.productName  || '-'}}
				</view>
				<view style="width: 100%;">
					{{props.item?.productRespVO?.point || props.item?.point || '-'}}<text>积分</text>
				</view>
			</view>
		</view>
		<view class="omit_product-number">*{{props.item?.count || props.item?.productCount || '-'}}</view>
	</view>
</template>

<script setup>
	const props = defineProps({
		item: {
			type: Object,
		}
	})
</script>

<style scoped lang="scss">
	.omit_product {
		$iwh: 180rpx;

		&-mask {
			width: 100%;
			height: 100%;
			left: 0;
			top: 0;
			background: rgba(0, 0, 0, .7);
			text-align: center;
			color: #fff;
			padding-top: 60rpx;
			z-index: 99;
		}

		&-number {
			font-weight: 500;
			font-size: 28rpx;
			color: #EDFAFF;
			margin-top: auto;
			padding-bottom: 10rpx;
		}

		&-left {
			height: $iwh;

			&-cover {
				width: $iwh;
				height: $iwh;
				border-radius: 8rpx;
			}

			&-data {
				margin-left: 18rpx;
				align-content: space-between;

				view:last-child {
					font-weight: 600;
					color: #FFC75C;
					font-size: 48rpx;

					text {
						font-size: 28rpx;
					}
				}

				view:first-child {
					word-break: break-all;
					overflow: hidden;
					display: -webkit-box;
					-webkit-line-clamp: 3;
					-webkit-box-orient: vertical;
					font-weight: 500;
					font-size: 32rpx;
					color: #FFFFFF;
				}
			}
		}
	}
</style>